Whitespace is OK in shortname for magellanX (with 20 char names), but not magellan...
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 15 Sep 2005 01:49:39 +0000 (01:49 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 15 Sep 2005 01:49:39 +0000 (01:49 +0000)
gpsbabel/magproto.c

index f252e9da87aeb6589fa2c3269d15d3a83c4f92da..ff234827d530ba7f7f247ce6b5acad9453745a9e 100644 (file)
@@ -851,6 +851,7 @@ magX_wr_init(const char *portname)
        wpt_len = 20;
        mag_wr_init_common(portname);
        setshort_length(mkshort_handle, wpt_len);
+       setshort_whitespace_ok(mkshort_handle, 1);
 }
 
 static void
@@ -858,6 +859,12 @@ mag_wr_init(const char *portname)
 {
        wpt_len = 8;
        mag_wr_init_common(portname);
+       /* 
+        * Whitespace is actually legal, but since waypoint name length is
+        * only 8 bytes, we'll conserve them.
+        */
+
+       setshort_whitespace_ok(mkshort_handle, 0);
 }
 
 static void
@@ -1401,12 +1408,6 @@ mag_route_pr()
 static void
 mag_write(void)
 {
-       /* 
-        * Whitespace is actually legal, but since waypoint name length is
-        * only 8 bytes, we'll conserve them.
-        */
-
-       setshort_whitespace_ok(mkshort_handle, 0);
 
        wptcmtcnt = 0;